package com.my.mymstemplateservice.test;


import com.my.mycommondomain.domian.R;
import com.my.mycommonredis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class RedisTestController {
    @Autowired
    private RedisService redisService;
    @PostMapping("/add")
    public R<Void> test(){
        redisService.setCacheObject("redisTest", "test");
        return R.ok();
    }

}
